package com.neusoft.configuration;

import com.neusoft.entity.FollowsEntity;
import com.neusoft.entity.TagsEntity;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Component
public class UserFactory {
    @Bean
    public TagsEntity tagsEntityXx(){
        TagsEntity tagsEntity = new TagsEntity();
        tagsEntity.setName("java");
        return tagsEntity;
    }

    @Bean
    public FollowsEntity followsEntity(){
        FollowsEntity followsEntity = new FollowsEntity();
        followsEntity.setUserId(55L);
        return followsEntity;
    }
}
